
package com.jf.cloud.api.flow.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author zz
 * @date 2021/07/01
 */
@FeignClient(value = "jfcloud-flow",contextId ="flow")
public interface FlowFeignClient {

    /**
     * 删除商品统计数据
     * @param spuId 商品id
     * @return void
     */
    @DeleteMapping(value = FeignInsideAuthConfig.FEIGN_URL_PREFIX + "/insider/flow/deleteSpuDataBySpuId")
    ServerResponseEntity<Void> deleteSpuDataBySpuId(@RequestBody Long spuId);

}
